#include <system/KeyboardEvent.h>

namespace ne
{
    KeyboardEvent::KeyboardEvent(const Keyboard &keyboard, const KeyboardKey k)
        : Event("NE_KEYBOARD_EVENT"),
          modifier(keyboard.getModifier()),
          translationMode(keyboard.getTranslationMode()),
          key(k),
          keyDown(keyboard.isKeyDown(k))
    {
    }

    KeyboardEvent::KeyboardEvent(const KeyboardEvent &e)
        : Event(e),
          modifier(e.modifier),
          translationMode(e.translationMode),
          key(e.key),
          keyDown(e.keyDown)
    {
    }

    KeyboardEvent& KeyboardEvent::operator = (const KeyboardEvent &e)
    {
        Event::operator = (e);
        modifier = e.modifier;
        translationMode = e.translationMode;
        key = e.key;
        keyDown = e.keyDown;
        return *this;
    }

    KeyboardEvent::~KeyboardEvent()
    {
    }
}
